package com.things8.iot.consumer.dto;

import com.things8.iot.common.dto.PageDto;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/5/9 15:15
 */
@Getter
@Setter
public class QueryDeviceDto extends PageDto {
    @Range(min = 0,max = 99,message = "id范围在0-99之间")
    @NotNull(message = "sysId不能为null")
    @Digits(message = "sysId必须为数值",integer = 2,fraction = 0)
    private Long sysId;
    private String name;
    @NotBlank(message = "搜索内容不能为空")
    @NotNull
    private String searchContent;

}
